<template>
  <button @click="getData">发请求</button>
</template>

<script>
// import { getUserInfo } from '@/api/index'
import axios from 'axios'
export default {
  name: 'TestView',
  methods: {
    // 测试模拟数据接口
    async getData() {
      console.log(1)
      // const res = await getUserInfo()
      // console.log(res)
      const res = await axios.get('http://www.test.com/swiper')
      console.log(res)
    }
  }
}
</script>

<style lang="less" scoped></style>
